package com.ss.android.wenda.answer.detail2;

import android.view.View;
import com.ss.android.article.base.feature.detail.model.ArticleInfo;
import com.ss.android.article.base.feature.detail2.article.a.NewDetailViewHolder;

final class ai implements View.OnClickListener {
    private final NewAnswerDetailFragment a;

    ai(NewAnswerDetailFragment arg1) {
        this.a = arg1;

    }

    public final void onClick(View arg4) {
        NewDetailViewHolder v0 = NewAnswerDetailFragment.a(this.a);
        if(v0 != null) {
            ArticleInfo v0_1 = v0.mNewDetailPageExtra.mArticleInfo;
            if(v0_1 != null) {
                NewAnswerDetailFragment.a(this.a, "like");
                NewAnswerDetailFragment v1 = this.a;
                boolean v0_2 = !v0_1.isUserLike() ? true : false;
                NewAnswerDetailFragment.e(v1, v0_2);
            }
        }
    }
}

